footer.init();
header.init('店铺管理');

app.ajax(
	'/Member/Shop/Index',
	null,function(res){
		if(res.code == 200){
			app.tpl($('.shop'),'tpl-shop',res);
		}
	}
)
window.onload = function(){
	setTimeout(function(){
		var myswiper1 = new Swiper('.swiper-container', {
	      autoplay: 3000,
	      direction : 'vertical',
	      pagination:'.swiper-pagination',
	      paginationClickable: true,
	      autoplayDisableOnInteraction : false,
	   	  loop:true
	 	});
	},2000);
	
	//收益
	$('body').on('click','.shop-Profit',function(){//我的收益
		app.open('shop.profit.html','shop_profit',{},window.location.href,document.body.scrollTop);
	});

	$('body').on('click','.shop-order',function(){//我的订单
		app.open('shop.order.html','shop_order',{},window.location.href,document.body.scrollTop);
	});
	
	$('body').on('click','.shop-sale',function(){//我的销售
		app.open('shop.sales.html','shop_sales',{},window.location.href,document.body.scrollTop);
	});
	
	$('body').on('click','.shop-fans',function(){//我的粉丝
		app.open('shop.fans.mess.html','shop_fans',{},window.location.href,document.body.scrollTop);
	});
	
	$('body').on('click','.shop-extend',function(){
		app.open('shop.shareMaterial.html','shareMaterial',{},window.location.href,document.body.scrollTop);
	});
	
	
	$('body').on('click','.shop-classroom',function(){
		app.open('classroom.html','classroom',{},window.location.href,document.body.scrollTop);
	});
	
	$('body').on('click','.shop-invite',function(){
		app.open('sxRightRules.html','sxRightRules',{},window.location.href,document.body.scrollTop);
	});
	
	$('body').on('click','.swiper-wrapper .swiper-slide',function(){
		app.open('shop.kx.html','shop_kx',{},window.location.href,document.body.scrollTop);
	});
}
